package cc.mrbird.event.dao;

import cc.mrbird.common.config.MyMapper;
import cc.mrbird.event.domain.EventInformation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EventInformationMapper  extends MyMapper<EventInformation> {
    List<EventInformation> findEventInformationList(EventInformation eventInformation);

    List<EventInformation> findEventInformationList(@Param("nextTime") String nextTime);

    List<EventInformation> findAllTypeAndId();

    EventInformation findByIdAndTime(@Param("event_id") long event_id, @Param("nextTime") String nextTime);

    List<EventInformation> findAllByAlarmType();

    EventInformation findById(long id);
}
